package com.cy.src.tcpudp.client.tcp;

import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;

/**
 * Created by cy on 16-10-13.
 */

public class TCPClient {


    public TCPClient(InetAddress inetAddress, int port) {

//        InetAddress inetAddress=InetAddress.getByName("");
        try {
            Socket socket = new Socket();

            SocketAddress socketAddress = new InetSocketAddress(inetAddress, port);
            socket.connect(socketAddress);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
